#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const int N = 1;
const int M = 1e9+7;

int s, t;


int main()
{
#ifdef LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#endif
    ios::sync_with_stdio(false), cin.tie(0);
    cin >> s >> t;
    int res = 0;
    for (int i = 0; i <= s; i++)
        for (int j = 0; j <= s; j++)
            for (int k = 0; k <= s; k++)
                if (i+j+k <= s && i*j*k <= t)
                    res ++;
    
    cout << res << endl;
    return 0;
}